import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.jsx';
import './index.less';
import { ConfigProvider, theme } from 'antd';

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <ConfigProvider theme={{ algorithm: [theme.darkAlgorithm] }}>
      <App />
    </ConfigProvider>
  </React.StrictMode>
);

// Use contextBridge
window.ipcRenderer.on('main-process-message', (_event, message) => {
  console.log(message);
});
